<template>
    <el-row class="tac">
        <el-col :span="20">
            <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            router
            @open="handleOpen"
            @close="handleClose">
            <el-menu-item index="/user/userCenter/updateUserInfo">
                <span slot="title">个人信息</span>
            </el-menu-item>
            <el-menu-item index="/user/userCenter/myAvatar">
              <span slot="title">头像更换</span>
            </el-menu-item>
            <el-menu-item index="/user/userCenter/updatePassword">
                <span slot="title">修改密码</span>
            </el-menu-item>
            <el-menu-item index="/user/userCenter/myComments">
                <span slot="title">我的评论</span>
            </el-menu-item>
            </el-menu>
        </el-col>
    </el-row>
</template>

<script>
  export default {
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
    }
  }
</script>

<style>

</style>